AdminManager._templates = { 
	"search_filter" : '<div id="%(_int_cnt_div)s:filter" class="adminman_filter"></div>',

	"search_results" : '<div class="results_toolbar" id="%(_am_name)s:results_header"></div><div id="%(_int_res_div)s" class="adminman_results" ></div><div class="results_toolbar" id="%(_am_name)s:results_footer"></div><div id="am_footer"></div>',

	'glob_delete' : ' <div class ="glob-action adm-man-ico am_bin" title="Elimina Selezionati" onclick="AdminManager.del_all_item(\'%(_am_name)s\')"></div>',


	'glob_refresh' : '<div class ="glob-action adm-man-ico am_refresh" title="Aggiorna lista" onclick="AdminManager.refresh (\'%(_am_name)s\')"></div>',

	'glob_single_action' : '<a class="glob_%(action_name)s" href="javascript:AdminManager.glob_action(\'%(action_name)s\',\'%(_am_name)s\')"><img border="0" src="%(img_src)s" alt="%(label)s" title="%(label)s" /></a>',

	'glob_actions' : '%(_glob_delete)s %(_glob_refresh)s',

	'module_actions' : '',

	'mod_menu_sep' : '<div class="glob-action adminman_mod_menu_sep"></div>',


	'module_single_action' : '<div class ="glob-action adm-man-ico %(class)s" title="%(label)s" onclick="%(func)s"></div>',	

	'results_toolbar' : '<table  border="0" width="100%"><tr><td width="auto"><div title="Pagina Precedente" class="tbar adm-man-ico tbar_back%(disp_back)s" onclick="%(prev_page)s">&nbsp;</div><div class="tbar tbar_res">Risultati: %(num_rows)s - Pagina: %(page)s %(tot_pages)s</div><div title ="Pagina Successiva" class="tbar adm-man-ico tbar_next%(disp_next)s" onclick="%(next_page)s">&nbsp;</div></td><td align="right"><span class="toolbar_actions">%(_glob_actions)s</span></td></tr></table>',

	"del_obj" : '<div class="adminman_del_icon" title="Elimina" onclick="AdminManager.row_action(\'%(_id)s\',\'del_item\', \'%(_am_name)s\' )" ></div>',

	"edit_obj" : '<div class="adminman_edit_icon" title="Modifica" onclick="AdminManager.row_action(\'%(_id)s\',\'edit_item\',\'%(_am_name)s\')"></div>',
			
	"navi" : '<div>%(prev_page)s %(dash)s %(next_page)s</div>',

	"no_result" : '<div class="no_result">Nessun risultato</div>',

	"ds_prev_page" : '<a href="%(_prev_page)s">Pagina Precedente</a>',

	"ds_next_page" : '<a href="%(_next_page)s">Pagina Successiva</a>',

	"ds_table_head" : '<table width="100%" class="adminmanager_manage_table" border="0" cellpadding="0" cellspacing="0" >',

        "ds_th_header_start" : '<tr class="th_header">',

        "ds_th_checkbox" : '<th><input type="checkbox" onclick="AdminManager.select_all(this.checked,\'%(_am_name)s\')" /></th>',

	"ds_td_checkbox": '<tr class="adminman_row" id="%(_am_name)s_row_%(_id)s"><td class="am_check">%(_checkbox)s</td>', 

	"ds_th_single_field" : '<th>%(_row_field)s %(field_cbacks)s</th>',

	//"ds_func_cback" : 'onclick = "function _ds_filter_%(_field)s () { %(func)s };"',
	"ds_func_cback" : 'onclick = "%(func)s"',
	"ds_filter_cback" : '<div id="filter_%(_am_name)s_%(_field)s" class="am-th-filter" onclick = "AdminManager.pop_filter_form ( \'%(_field)s\', \'%(_am_name)s\' );"></div>',
	"ds_sort_cback" : '<div id="sort_%(_am_name)s_%(_field)s" class="am-th-sort" onclick = "%(cback)s ( \'%(_field)s\', \'%(_am_name)s\' );"></div>',

	"ds_td_single_field" : '<td>%(_row_field)s</td>',

        "ds_th_close" : '<th class="adminman_th_action">&nbsp;</th>',

        "ds_td_close" : '<td>%(_acts)s</td></tr>',
	
	"actions_row_action" : '<a href="javascript:AdminManager.row_action(\'%(_id)s\',\'%(_action)s\',\'%(_am_name)s\')">%(_txt)s</a>',

	"am-move-field" : '<div><div class="am-field-up" onclick="AdminManager.move_field ( %(_id)s,\'%(_am_name)s\', %(_pos)s, \'up\' );"></div>' + 
			'<div onclick="AdminManager.pop_pos_form ( %(_id)s,\'%(_am_name)s\', %(_pos)s );" class="am-pos-filter" id="parent_pos_%(_am_name)s_%(_id)s"></div>' +
			'<div class="am-field-down" onclick="AdminManager.move_field ( %(_id)s,\'%(_am_name)s\', %(_pos)s, \'down\' );"></div></div>',

	"actions_head" : '<table border="0" width="100%"><tr>',

	"actions_cell" : '<td>%(_action)s</td>',

	"actions_footer" : '</tr></table>'
};
